package com.hujiheng.paike.service;

import com.hujiheng.paike.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {
    Student getById(@Param("studentId") int studentId);
    List<Student> getStudentsByName(@Param("studentName") String studentName);
    List<Student> getStudentsByClassId(@Param("classId") int classId);
    List<Student> getStudentsBySex(@Param("sex") String sex);
    List<Student> getStudentsLikeName(@Param("studentName") String studentName);
    List<Student> getStudentList();
    int addStudent(@Param("student") Student student);
    int updateStudent(@Param("student") Student student);
    int deleteStudent(@Param("studentId") int studentId);
}
